/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/9  10:22
 * @Copyright
 */
public class ArrayDome02 {
    public static void main(String[] args) {
        /*
        * 数据类型[][] 数组名 = new 数据类型[一维数组的个数][];
        *
        * 数据类型[][] 数组名 = {{元素1，元素2，....}，{元素1，元素2，....}，...}
        *
         * */

        int [][] arr = new int[3][];
        arr[0] = new int[5];
        arr[1] = new  int[3];

        //定义好数组之后，不可往里面定义新的
        String[][] stus ={{"张三","20"},{"张sir","20","男"},{"张五","20"}};
        stus[2] = null;
        for(int i=0; i<stus.length;i++){
            if (stus[i] != null){
                for (int i1 = 0; i1 < stus[i].length; i1++) {
                    System.out.println(" stus [i][i1]" +stus[i][i1] );
                }
            }
        }
        stus[3] = new String[]{"四大","asda"};





    }
}
